package com.example.foodsy.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDate;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 养殖企业产品批号信息表
 * </p>
 *
 * @author cgc
 * @since 2025-09-23
 */
@Getter
@Setter
@TableName("farm_info")
@ApiModel(value = "FarmInfo对象", description = "养殖企业产品批号信息表")
public class FarmInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "fb_id", type = IdType.AUTO)
    private Integer fbId;

    @ApiModelProperty("养殖企业产品批号")
    @TableField("batch_id")
    private String batchId;

    @ApiModelProperty("养殖企业编号")
    @TableField("farm_id")
    private Integer farmId;

    @ApiModelProperty("产品品种")
    @TableField("farm_type")
    private String farmType;

    @ApiModelProperty("动物检疫合格证编号")
    @TableField("aqc_id")
    private String aqcId;

    @ApiModelProperty("检疫员名称")
    @TableField("test_name")
    private String testName;

    @ApiModelProperty("批号录入日期")
    @TableField("fm_date")
    private LocalDate fmDate;

    @ApiModelProperty("状态：1.待发布； 2.已发布； 3.已下架；")
    @TableField("state")
    private Integer state;

    @ApiModelProperty("备注")
    @TableField("remark")
    private String remark;
}
